package cn.seecoder.courselearning.mapperservice.post;

import cn.seecoder.courselearning.po.course.Course;
import cn.seecoder.courselearning.po.post.Post;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface PostMapper {

    int insert(Post record);

    //查单个帖子
    Post selectByPrimaryKey(Integer id);

    //帖子类里持有一个list Collections.sort(allReplyId);

    //按照发表时间倒序
    List<Post> selectByPostTime(Integer courseId);

    //按照最新回复时间倒序
    List<Post> selectBylastReplyTime(Integer courseId);

}
